console.log('加载page_anli_detail.js');
//从其他页面加载页面
myApp.onPageInit('design_trip_anli_detail', function (page) {
	var anliId = $$('#design_trip_anli_detail').data('anliId');
	$$.ajax({
	    url:url_get_design_trip_anli_detail,
	    method:"GET",
		data:{id:anliId},
		dataType:'json',
		//xhrFields:{withCredentials:true},
		success: function (ajaxresult) {             
		    if(ajaxresult.code==1){
		    	//获取列表数据
		        var data_anli_detail = ajaxresult.data;
		        console.log(data_anli_detail);
		        
		        //写入列表模板
		        var html_anli_detail = myApp.designTripAnliDetailTemplate(data_anli_detail);
		        $$('#design_trip_anli_detail .page-content').html(html_anli_detail);
		        
		        //初始化lazy loading
		        myApp.initImagesLazyLoad('#design_trip_anli_detail');
		        		        
		    }else{
		  	  myApp.alert(ajaxresult.msg);
		    }
		}
	});
});